home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / csetup.zip / SETUPAPI.H < prev    next >
C/C++ Source or Header  |  1993-12-23  |  5KB  |  146 lines

  1. /*
  2.     setupapi.h
  3. */
  4.  
  5. // string constants
  6.  
  7. #define szCUIDLL "mscuistf.dll"
  8.  
  9.  
  10. // Command Option Flags
  11.  
  12. #define cmoVital       1
  13. #define cmoCopy        2
  14. #define cmoUndo        4
  15. #define cmoRoot        8
  16. #define cmoDecompress  16
  17. #define cmoTimeStamp   32
  18. #define cmoReadOnly    64
  19. #define cmoBackup      128
  20. #define cmoForce       256
  21. #define cmoRemove      512
  22. #define cmoOverwrite   1024
  23. #define cmoAppend      2048
  24. #define cmoPrepend     4096
  25. #define cmoNone        0
  26. #define cmoAll         ((UINT)65535)
  27.  
  28. // Setup API Errors
  29. #define saeFail    0
  30. #define saeInit    1
  31. #define saeNYI     3
  32. #define saeArg     4    // must be max sae value
  33.  
  34. //General Return Codes
  35.  
  36. #define grcOkay         0
  37. #define grcNotOkay      1
  38. #define grcUserQuit     48
  39.  
  40. // ON ERROR Error Codes
  41. #define STFERR       1024   //setup system error
  42. #define STFQUIT      1025   //user quit
  43.  
  44. #define MAXSTRINGLENGTH 64
  45.  
  46. //
  47. // debug macros
  48. //
  49.  
  50. #ifdef DEBUG
  51.  
  52.     extern void FAR cdecl DbgOut(LPSTR lpFormat, ...);
  53.  
  54.     #define dprintf                         DbgOut
  55.  
  56. #else // not DEBUG
  57.  
  58.     #define dprintf  if (0) ((int (*)(char *, ...)) 0)
  59.  
  60. #endif // DEBUG
  61.  
  62. //
  63. // Macros for external functions which we are simply doing
  64. // a name mapping for
  65. //
  66.  
  67. #define SetBitmap(a,b) FSetBitmap((a),(b))
  68. #define GetSymbolValue(sym, val, i) CbGetSymbolValue((sym),(val),(i))
  69. #define SetSymbolValue(sym,val) FSetSymbolValue((sym),(val))
  70. #define OpenLogFile(f,a) FOpenLogFile((f),(a))
  71. #define CloseLogFile FCloseLogFile
  72. #define CreateProgmanGroup(g,p,c) FCreateProgmanGroup((g),(p),(c))
  73. #define IsDirWritable(p) FIsDirWritable(p)
  74.  
  75. //
  76. // in setupapi.c
  77. //
  78.  
  79.  
  80. extern BOOL CreateProgmanItem(LPSTR szGroup, LPSTR szItem, LPSTR szCmd, LPSTR szOther, UINT cmo);
  81. extern void CreateDir(LPSTR szDir, UINT uiCmd);
  82. extern HANDLE InitSetup(LPSTR szCmdLine);
  83. extern BOOL AddSectionFilesToCopyList(LPSTR szSect,
  84.                                       LPSTR szSrc,
  85.                                       LPSTR szDest);
  86. extern void CreateIniKeyValue(LPSTR szFile, LPSTR szSect, LPSTR szKey, 
  87.                        LPSTR szValue, UINT cmo);
  88. extern BOOL ShowProgmanGroup(LPSTR szGroup, UINT uiCmd, UINT cmo);
  89. extern void ReadInfFile(LPSTR lpszInfFile);
  90. extern void cdecl Error(LPSTR lpFormat, ...) ;
  91. extern void UIPopAll(void);
  92. extern void UIPop(UINT uiCount);
  93. extern UINT AskQuit(void);
  94. extern UINT UIStartDlg(LPSTR szDll,
  95.                 UINT uiDlg, 
  96.                 LPSTR szDlgProc,
  97.                 UINT uiHelpDlg, 
  98.                 LPSTR szHelpProc);
  99. extern void BadPath(void);
  100. extern void MakePath(LPSTR szDir, LPSTR szFile, LPSTR szPath);
  101. extern void cdecl WriteToLogFile(LPSTR lpFormat, ...) ;
  102. extern UINT CopyFilesInCopyList(void);
  103.  
  104. //
  105. // external functions
  106. //
  107.  
  108. extern BOOL FAR PASCAL FCreateProgManItem(LPSTR szGroup, LPSTR szItem, LPSTR szCmd, UINT cmo);
  109. extern BOOL FAR PASCAL FShowProgManGroup(LPSTR szGroup, LPSTR szCmd, UINT cmo);
  110. extern BOOL FAR PASCAL FCreateProgmanGroup(LPSTR szGroup, LPSTR szPath, UINT cmo);
  111. extern BOOL FAR PASCAL FValidFATPath(LPSTR szPath);
  112. extern BOOL FAR PASCAL FCreateIniKeyValue(LPSTR szFile, LPSTR szSect, LPSTR szKey, 
  113.                        LPSTR szValue, UINT cmo);
  114. extern HWND FAR PASCAL HwndFrame(void);
  115. extern HINSTANCE FAR PASCAL HinstFrame(void);
  116. extern int FAR PASCAL FSetBitmap(LPSTR lpszDll, UINT uiBitmap);
  117. extern BOOL FAR PASCAL FCreateDir(LPSTR szDir, UINT uiCmd);
  118. extern BOOL FAR PASCAL FValidFATDir(LPSTR szDir);
  119. extern BOOL FAR PASCAL FSetSymbolValue(LPSTR lpszSymbol,
  120.                                       LPSTR lpszValue);
  121. extern BOOL FAR PASCAL FOpenLogFile(LPSTR szFile, BOOL bAppend);
  122. extern void FAR PASCAL FCloseLogFile(void);
  123. extern BOOL FAR PASCAL FAddSectionFilesToCopyList(LPSTR szSect,
  124.                                                  LPSTR szSrc,
  125.                                                  LPSTR szDest);
  126.  
  127.  
  128.  
  129. extern HANDLE FAR PASCAL InitializeFrame(LPSTR lpszCmdLine);
  130. extern int FAR PASCAL FInitializeInstall(HINSTANCE hInstance, HWND hwndFrame);
  131. extern int FAR PASCAL CbGetSymbolValue(LPSTR lpszSym, LPSTR lpszValue, int iMax);
  132. extern int FAR PASCAL FOpenInf(LPSTR szFile, BOOL fCheck, BOOL fCheckSyms);
  133. extern BOOL FAR PASCAL FDoDialog(HWND hWnd,
  134.                                  LPSTR szDll,
  135.                                  UINT uiDlg, 
  136.                                  LPSTR szDlgProc,
  137.                                  UINT uiHelpDlg, 
  138.                                  LPSTR szHelpProc);
  139. extern void FAR PASCAL TerminateFrame(void);
  140. extern void FAR PASCAL FKillNDialogs(UINT uiCount);
  141. extern BOOL FAR PASCAL FIsDirWritable(LPSTR lpszPath);
  142. extern BOOL FAR PASCAL FOpenLogFile(LPSTR szFile, BOOL bAppend);
  143. extern BOOL FAR PASCAL FWriteToLogFile(LPSTR szString, BOOL bRequire);
  144. extern UINT FAR PASCAL GrcCopyFilesInCopyList(HINSTANCE hInstance);
  145. extern HINSTANCE FAR PASCAL HinstFrame(void);
  146.